/*
    SUSAN® - Sole of Unix Save ANything

   

   
*/

#include "gtest/gtest.h"
#include "include/susan.h"
#include "lib/backtrace.h"

#include <string>
#include <vector>

TEST(Backtrace, test_backtrace)
{
  std::vector<BacktraceInfo> bt(Backtrace(0, 1));
  ASSERT_EQ(bt.size(), 1);
  EXPECT_NE(bt[0].function_call_.find("Backtrace"), std::string::npos);
}
